package com.lemon.springcloud.core.component.mybatis;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author lemon
 * @ClassName MultiDataSource
 * @desc 多数据源类
 * @Date 2018/11/6 17:45
 * @Version 1.0
 **/
public class MultiDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDataSourceType();
    }
}
